import Vue from 'vue'
import App from './App'
import uView from "uview-ui";

import { maybe } from './utils/utils.js'

import Http from 'utils/require.js'


import "./style/index.scss";

Vue.use(uView);

Vue.mixin({
	computed: {
		uploadUrl() {
			return Http.baseUrl + 'upload'
		},
		AuthHeaders() {
			return {
				Authorization: `Bearer ${uni.getStorageSync('token')}`
			}
		}
	},
    methods: { 
		maybe,
		
	},
})

// 注册到全局
Vue.prototype.$http = Http

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
